]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
system: Align submenu labels with parent
authorFlorian Müllner <fmuellner@gnome.org>
Sun, 19 Nov 2017 19:35:25 +0000 (20:35 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 11 Dec 2017 15:19:09 +0000 (16:19 +0100)
All section titles use an icon, while all corresponding submenu items
are plain-text. As a result, labels in submenus aren't aligned with
the labels in the parent, which makes them harder to read and look
unbalanced. Address this by adding additional whitespace to submenu
items to account for the additional elements in the title.

https://bugzilla.gnome.org/show_bug.cgi?id=706191

data/theme/gnome-shell-high-contrast.css
data/theme/gnome-shell-sass
data/theme/gnome-shell.css

index 03a29f3141e60615608202fb7da042e61f24248d..ff0ebcabe277b40fbe8159fdcf8f433bdca1ab8e 100644 (file)
@@ -987,6 +987,14 @@ StScrollBar {
   min-width: 21em; }
   .aggregate-menu .popup-menu-icon {
     padding: 0 4px; }
+  .aggregate-menu .popup-sub-menu .popup-menu-item :first-child:ltr {
+    /* 12px spacing + 2*4px padding */
+    padding-left: 20px;
+    margin-left: 1.09em; }
+  .aggregate-menu .popup-sub-menu .popup-menu-item :first-child:rtl {
+    /* 12px spacing + 2*4px padding */
+    padding-right: 20px;
+    margin-right: 1.09em; }
 
 .system-menu-action {
   color: #fff;
index 32361ac692945e4c2c3ff80d20a4b03649699828..57a2e5bfe179d9db1e05c3edaffdcb3fee307be0 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 32361ac692945e4c2c3ff80d20a4b03649699828
+Subproject commit 57a2e5bfe179d9db1e05c3edaffdcb3fee307be0
index f22a61ea6c2bf79325319ca82091b35628f34d04..61a78d37917e6678d18b7e5445a6fe6120f6b8c4 100644 (file)
@@ -987,6 +987,14 @@ StScrollBar {
   min-width: 21em; }
   .aggregate-menu .popup-menu-icon {
     padding: 0 4px; }
+  .aggregate-menu .popup-sub-menu .popup-menu-item :first-child:ltr {
+    /* 12px spacing + 2*4px padding */
+    padding-left: 20px;
+    margin-left: 1.09em; }
+  .aggregate-menu .popup-sub-menu .popup-menu-item :first-child:rtl {
+    /* 12px spacing + 2*4px padding */
+    padding-right: 20px;
+    margin-right: 1.09em; }
 
 .system-menu-action {
   color: #eeeeec;